#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    pLabel1= new QLabel("学习QT", this);
    pLabel1->setGeometry(50, 50, 300, 100);
    pLabel1->setStyleSheet("QLabel {background-color:red;color:black}");
    pLabel1->setFont(QFont("隶书", 22));
}

MainWindow::~MainWindow()
{
    delete ui;
}

